package org.ueg.model;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;

@Entity
@DiscriminatorValue("Funcionario")
public class Funcionario extends Pessoa {
	
	@Column(name="cargo", length=70)
	private String cargo;
	
	@Column(name="slario")
	private Double salario;
	
	@Column(name="descricao", length=100)
	private String descricao;
	
	
	
	@OneToOne
	@PrimaryKeyJoinColumn(name="codFornecedor")
	private Endereco endereco;

	public String getCargo() {
		return cargo;
	}

	public void setCargo(String cargo) {
		this.cargo = cargo;
	}

	public Double getSalario() {
		return salario;
	}

	public void setSalario(Double salario) {
		this.salario = salario;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}
	
	
	

}

